﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Identity
{
    class Persen
    {
        public Persen(string name,int age,string sex,string major)
        {
       this.Name = name;
            this.Age = age;
            this.Sex = sex;
            this.Major = major;

        }
        public string Name { get; set; }
        public int Age { get; set; }
        public string Sex { get; set; }
        public string Major { get; set; }
        public void PrintMag()
        {

            Console.WriteLine("姓名："+this.Name);
            Console.WriteLine("年龄："+this.Age);
            Console.WriteLine("性别："+this.Sex);
            Console.WriteLine("专业："+this.Major);
        }
    }
    
}

